#!/usr/bin/python

import os
import sys

import mcastcmd

MCAST_PORT = 55555
MCAST_GRP  = "224.1.1.1"

s = mcastcmd.mcastSendSock(MCAST_GRP, MCAST_PORT)
while True:
	data = raw_input("cmd> ")
	s.send(data)
	print "data = %s" % data
